import 'package:flutterproject/generated/json/base/json_convert_content.dart';
import 'package:flutterproject/page/setting/children/upgrade/data/upgrade_bean.dart';

UpgradeBean $UpgradeBeanFromJson(Map<String, dynamic> json) {
	final UpgradeBean upgradeBean = UpgradeBean();
	final String? apkMd5 = jsonConvert.convert<String>(json['apkMd5']);
	if (apkMd5 != null) {
		upgradeBean.apkMd5 = apkMd5;
	}
	final String? apkUrl = jsonConvert.convert<String>(json['apkUrl']);
	if (apkUrl != null) {
		upgradeBean.apkUrl = apkUrl;
	}
	final String? downloadUrl = jsonConvert.convert<String>(json['downloadUrl']);
	if (downloadUrl != null) {
		upgradeBean.downloadUrl = downloadUrl;
	}
	final String? forceVersionCode = jsonConvert.convert<String>(json['forceVersionCode']);
	if (forceVersionCode != null) {
		upgradeBean.forceVersionCode = forceVersionCode;
	}
	final String? tips = jsonConvert.convert<String>(json['tips']);
	if (tips != null) {
		upgradeBean.tips = tips;
	}
	final String? versionCode = jsonConvert.convert<String>(json['versionCode']);
	if (versionCode != null) {
		upgradeBean.versionCode = versionCode;
	}
	final String? versionTitle = jsonConvert.convert<String>(json['versionTitle']);
	if (versionTitle != null) {
		upgradeBean.versionTitle = versionTitle;
	}
	return upgradeBean;
}

Map<String, dynamic> $UpgradeBeanToJson(UpgradeBean entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['apkMd5'] = entity.apkMd5;
	data['apkUrl'] = entity.apkUrl;
	data['downloadUrl'] = entity.downloadUrl;
	data['forceVersionCode'] = entity.forceVersionCode;
	data['tips'] = entity.tips;
	data['versionCode'] = entity.versionCode;
	data['versionTitle'] = entity.versionTitle;
	return data;
}